﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Monocle.DataModel;

namespace Monocle.Models
{
    public class PageCollectionViewModel : List<PageViewModel>
    {
        public PageCollectionViewModel(List<PageViewModel> pageList)
        {
            foreach (var item in pageList)
                this.Add(item);
        }

        public PageCollectionViewModel(List<tPage> pageList)
        {
            foreach (var item in pageList)
                this.Add(new PageViewModel(item));
        }
    }
}